/*
 * @Description: 审批流程设置接口
 * @Author: wind-lc
 * @version: 1.0
 * @Date: 2021-09-08 14:50:37
 * @LastEditTime: 2021-09-08 16:25:02
 * @FilePath: \cscec-pms-admin\src\api\project\approvalProcessSetting.js
 */
import request2 from '@/utils/request2'
import { projectApiUrl } from '@/api/config'
export default {
  /**
   * @description: 获取记录
   * @param {Object} data 接口参数
   * @return {Promise} 接口Promise
   */
  scheduleProcessSetting: data => {
    return request2({
      url: projectApiUrl + '/scheduleProcessSetting',
      method: 'post',
      data
    })
  },
  /**
   * @description: 获取流程信息
   * @param {Object} data 接口参数
   * @return {Promise} 接口Promise
   */
  query: data => {
    return request2({
      url: projectApiUrl + '/scheduleProcessSetting/query',
      method: 'post',
      data
    })
  },
  /**
   * @description: 设置流程
   * @param {Object} data 接口参数
   * @return {Promise} 接口Promise
   */
  setting: data => {
    return request2({
      url: projectApiUrl + '/scheduleProcessSetting/setting',
      method: 'post',
      data
    })
  }
}
